<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script type="text/javascript">

	$(document).ready(function(){
		$("ul li:eq(1)").addClass("active");
	});
</script>
<div class="data_list">
	<div class="data_list_title">
		个人信息
	</div>
	<form action="password?action=change" method="post" onsubmit="return checkForm()">
		<div class="data_form" >
			<table align="center">
				<tr>
					<td>登录名：</td>
					<td><input type="text" id="userName" readonly = "readonly" name="userName" value="${currentUser.userName }"  style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>显示用户名：</td>
					<td><input type="text" id="name" readonly = "readonly"  name="name" value="${currentUser.name }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>学号：</td>
					<td><input type="text" id="num" readonly = "readonly" name="num" value="${currentUser.num }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td><input type="text" id="sex" readonly = "readonly" name="sex" value="${currentUser.sex }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>电话：</td>
					<td><input type="text" id="tel" readonly = "readonly" name="tel" value="${currentUser.tel }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>宿舍号：</td>
					<td><input type="text" id="floor" readonly = "readonly" name="roomNum" value="${currentUser.roomNum }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<td>楼栋号：</td>
					<td><input type="text" id="buildName" readonly = "readonly" name="buildName" value="${currentUser.buildName }" style="margin-top:5px;height:30px;" /></td>
				</tr>
				<tr>
					<c:choose>
						<c:when test="${currentUser.userType == 1}">
							<c:set var="userTypeText" value="系统管理员" />
						</c:when>
						<c:otherwise>
							<c:set var="userTypeText" value="学生" />
						</c:otherwise>
					</c:choose>
					<td>用户类型：</td>
					<td><input type="text" id="userType1" readonly="readonly" name="userType" value="${userTypeText}" style="margin-top:5px;height:30px;" /></td>
				</tr>

			</table>
		</div>
	</form>
</div>